<%-- 
    Document   : login
    Created on : 15.1.2014, 12:37:27
    Author     : xdemocko
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="s" uri="http://stripes.sourceforge.net/stripes.tld" %>
<%@taglib prefix="f" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ page import="org.springframework.security.core.Authentication,org.springframework.security.core.context.SecurityContextHolder,org.springframework.security.core.GrantedAuthority" %>
<s:layout-render name="/layout.jsp" titlekey="login.title"> 
    <s:layout-component name="body">
        <div class ="content">
            <div class="node node-page clearfix">
                <c:url value="/j_spring_security_check" var="loginUrl" />
                <form name='f' action="${loginUrl}"
                      method='POST'>
                    <br>
                    <table class="inputForm">
                        <tr>
                            <td><f:message key="login.name"/></td>
                            <td>
                                <input type='text' name='j_username' value=''/>
                            </td>
                        </tr>
                        <tr>
                            <td><f:message key="login.password"/></td>
                            <td>
                                <input type='password' name='j_password'/>
                            </td>
                        </tr>
                    </table>
                    <input class="button" name="submit" type="submit" value="<f:message key="login.submit"/>" />
        <!--                   <input class="button" name="reset" type="reset" value="<f:message key="login.reset"/>" />-->
                </form>
            </div>
        </div>
        <!--        <p>
            <span><a href="/pa165/"><f:message key="login.error.toMainMenu"/> </a></span>
        </p>-->
    </s:layout-component>

</s:layout-render>